// DocSecur.h
#ifndef __FILETOOLS_H__
#define __FILETOOLS_H__

struct TPath
{
	TCHAR path[MAX_PATH];
};

BOOL IsFileExist(wchar_t* filename);
BOOL IsDirExist(wchar_t* path);
BOOL MakeFullPath(const wchar_t* path);
BOOL HaveEnoughSpace(const wchar_t* path, unsigned int size);
BOOL RemoveDirAll(wchar_t* pszDir);
int	 GetSubDirLevel(wchar_t* pathName);
int	 GetFileSize(const wchar_t* filename);
int	 GetDirSize(const wchar_t* directory, unsigned int* fileCount = NULL);
BOOL IsDir(const wchar_t* name);
BOOL GetParentPath(const wchar_t* fullname, wchar_t* parentpath, wchar_t* name);
BOOL GetFileExt(const wchar_t* filename, wchar_t* fileext, wchar_t* name=NULL);
BOOL SepExtAndName(const wchar_t* filename, wchar_t* fileext, wchar_t* name=NULL);
BOOL RemoveDoc(wchar_t* name);


#endif	//__FILETOOLS_H__